package com.tjhzzx.danfossNiagaraCore.model.dashboard;



import com.tjhzzx.danfossNiagaraCore.enums.BHistoryLineType;

import javax.baja.sys.*;

public class BHistoryLine extends BBaseChart {
    public BHistoryLine() {
        setTitle("HistoryLine#");
    }

    public static final Property historyLineType = newProperty(0, BHistoryLineType.DEFAULT, null);

    public BHistoryLineType getHistoryLineType() {
        return (BHistoryLineType) get(historyLineType);
    }

    public void setHistoryLineType(BHistoryLineType v) {
        set(historyLineType, v, null);
    }

    public static final Property startTime = newProperty(0, BAbsTime.make(BAbsTime.now().getMillis()+30*24*3600*1000), null);

    public BAbsTime getStartTime() {
        return (BAbsTime) get(startTime);
    }

    public void setStartTime(BAbsTime v) {
        set(startTime, v, null);
    }

    public static final Property endTime = newProperty(0, BAbsTime.now(), null);

    public BAbsTime getEndTime() {
        return (BAbsTime) get(endTime);
    }

    public void setEndTime(BAbsTime v) {
        set(endTime, v, null);
    }

    public static final Property historyLineTypeExpose = newProperty(Flags.HIDDEN, BHistoryLineType.expose(), null);

    public String getHistoryLineTypeExpose() {
        return getString(historyLineTypeExpose);
    }

    public void setHistoryLineTypeExpose(String v) {
        setString(historyLineTypeExpose, v, null);
    }

    @Override
    public Type getType() {
        return TYPE;
    }

    public static final Type TYPE = Sys.loadType(BHistoryLine.class);
}
